package routers

import (
	"github.com/astaxie/beego"
	"goods/controllers"
)

func init() {
	beego.Router("/", &controllers.MainController{})
	beego.Router("/add", &controllers.GoodsController{}, "post:Add")
	beego.Router("/upload", &controllers.GoodsController{}, "post:Upload")
	beego.Router("/list", &controllers.GoodsController{}, "get:List")
	beego.Router("/delete", &controllers.GoodsController{}, "get:Delete")
	beego.Router("/info", &controllers.GoodsController{}, "get:Info")

}
